﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 钱包
    /// </summary>
    [Table("usr_wallet"), Comment("用户钱包"), Index(nameof(UserId))]
    public class Wallet : EfEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 余额 
        /// </summary>
        [Comment("余额"), Column(TypeName = "decimal(18,2)")]
        public decimal Balance { get; set; }

        /// <summary>
        /// 无手续费余额
        /// </summary>
        [Comment("无手续费余额"), Column(TypeName = "decimal(18,2)")]
        public decimal NoChargeBalance { get; set; }

        /// <summary>
        /// 可提现钱包，需要手续费
        /// </summary>
        [Comment("有手续费余额"), Column(TypeName = "decimal(18,2)")]
        public decimal ChargeBalance { get; set; }

        /// <summary>
        /// 购物金
        /// </summary>
        [Comment("购物金"), Column(TypeName = "decimal(18,2)")]
        public decimal ShoppingMoney { get; set; }
    }
}
